package ORDER;

import java.net.InetAddress;
import java.net.UnknownHostException;

import javax.swing.JFrame;

import TOOLS.SQLtool;
import TOOLS.errCodeManagement;

public class test003_orderMana {

	public static void main(String[] args) {
		SQLtool sql=new SQLtool();
		String IPaddr="192.168.1.1";
		try {
			InetAddress addr = InetAddress.getLocalHost();
			IPaddr=addr.getHostAddress();
		} catch (UnknownHostException e1) {
			;
		}
		sql.config(IPaddr, "AKS2019", "sa", "123456");
		sql.config("192.168.1.97", "XHAKS2021", "ma", "123456");
		try {
			sql.connect();
			new JFrame().setVisible(true);
			orderManagement c=new orderManagement(sql);
//			c.management("");
			c.createSN4orders();
			System.exit(0);
		} catch (Exception e) {
			String str=errCodeManagement.getErrText(e.getMessage());
			System.out.println(str);
			System.exit(0);
		}
	}

}
